package com.teach.flavour.model.dto;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.teach.flavour.enums.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员口味表
 * </p>
 *
 * @author hzz
 * @since 2020-03-11
 */
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AssociatorFlavour对象", description="会员口味表")
public class AssociatorFlavourDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    @ApiModelProperty(value = "会员id")
    private String associatorId;

    @ApiModelProperty(value = "主食 1米饭 2面条 3烧饼 4其他")
    private MealType meal;

    @ApiModelProperty(value = "主食替代物 1烧烤 2甜点 3麻辣烫 4杂粮 5其他")
    private MealSubstituendum mealSubstituendum;

    @ApiModelProperty(value = "吃辣程度 1不辣 2微辣 3中辣 4超辣")
    private SpicyRank spicyRank;

    public String getAssociatorId() {
        return associatorId;
    }

    public void setAssociatorId(String associatorId) {
        this.associatorId = associatorId;
    }

    public Integer getMeal() {
        return meal.getValue();
    }

    public void setMeal(String meal) {
        this.meal = MealType.textOf(Integer.valueOf(meal));
    }

    public Integer getMealSubstituendum() {
        return mealSubstituendum.getValue();
    }

    public void setMealSubstituendum(String mealSubstituendum) {
        this.mealSubstituendum = MealSubstituendum.textOf(mealSubstituendum);
    }
    public Integer getSpicyRank() {
        return spicyRank.getValue();
    }

    public void setSpicyRank(String spicyRank) {
        this.spicyRank=SpicyRank.textOf(spicyRank);
    }



}

